<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
   <%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>  
   <%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>User Login</title>
<script src="js/common/jquery.js"></script>
<link rel="stylesheet" type="text/css" href="styles/common-css/style.css">
<script src="js/common/submitform.js" type="text/javascript"></script>

<style>
.error
{
	color: red;
	 font-weight: bold;
}
</style>
</head>
<body onload='document.loginForm.j_username.focus();'>
<div id="wrapper">
           <div id="login-wrapp">
              <div id="login_area">
                <div class="row">
                  <div class="head"><spring:message code="pizzaShop.header" /></div>
                </div>
                 
	

			<c:if test="${not empty param.login_error}">
    			<div class="error">
        			Your login attempt was not successful, try again.<br />
        		 </div>
			</c:if>



                  <div class="logo">  <img src="images/common-images/login_logo.png" /> </div>
                  <div class="container">
                     <div class="admin"><div class="icon"><spring:message code="login.subheader" /></div> </div>
                      <div class="admin">
                  
                      <form action="<c:url value='j_spring_security_check' />" method="post" name="loginForm">
                          <input name="j_username" type="text" class="inp"  value="<c:out value='${SPRING_SECURITY_LAST_USERNAME}'/>"/>
                          <input name="j_password" type="password" class="inp" />
                          
                          <input id="submit" name="submit" type="submit" class="but" style="display: none;" />
                          <button id = "butt" onclick="$('#submit').click();" class="but" ></button>
                          <input name="newuser"  type="button" onclick="submitUrl('registerUser.action')" class="butt1"/>
                          </form>
                      </div>
                      
                  </div>
              </div>
           </div>
           <div class="clear"></div>
       </div>
</body>
</html>